<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>dinic: Referencia del Archivo network.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&nbsp;de&nbsp;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Buscar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia del Archivo network.h</h1>
<p>&lt; Estructura y funciones del network &gt;  
<a href="#_details">Más...</a></p>
<code>#include &quot;<a class="el" href="node_8h_source.html">node.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="constants_8h_source.html">constants.h</a>&quot;</code><br/>

<p><a href="network_8h_source.html">Ir al código fuente de este archivo.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Tipos definidos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structs__network.html">s_network</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#addbbab3d5accd36296eb31c4cf6c60e8">network</a></td></tr>
<tr><td colspan="2"><h2>Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__network.html">network</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a9180750065e74c1d1c16da870f9374c5">network_create</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crea un network.  <a href="#a9180750065e74c1d1c16da870f9374c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#ab389d49dc3e29b1e93effbad4f90f07a">network_add</a> (<a class="el" href="structs__network.html">network</a> n, unsigned int from, unsigned int to, unsigned int cap, unsigned int flow)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creador del network.  <a href="#ab389d49dc3e29b1e93effbad4f90f07a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__node.html">node</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a86a84798a70a49d52861744abc409c02">network_find</a> (<a class="el" href="structs__network.html">network</a> n, unsigned int name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Busca y devuelve un nodo del network.  <a href="#a86a84798a70a49d52861744abc409c02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#ac90020360bcf4cbdb4edf87747b59514">network_destroy</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor del network.  <a href="#ac90020360bcf4cbdb4edf87747b59514"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__network.html">network</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#ae84887188c4016ac7207d02b05e968d7">network_helper_create</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crea un network auxiliar.  <a href="#ae84887188c4016ac7207d02b05e968d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#aaee1073c65cf1ce8fae947890cbe1ea6">network_helper_add</a> (<a class="el" href="structs__network.html">network</a> n, unsigned int from, unsigned int to, unsigned int cap, unsigned int flow, bool backward)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creador del network.  <a href="#aaee1073c65cf1ce8fae947890cbe1ea6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a2b8fe0c3122b341bcd6c60f370196cfa">network_path_exists</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indica si hay un camino en el network hasta t.  <a href="#a2b8fe0c3122b341bcd6c60f370196cfa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a0379626205439b310368565433910844">network_cut_calculate</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Imprime el corte en un network auxiliar en el archivo "cut.txt".  <a href="#a0379626205439b310368565433910844"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a994931ffee40f5225b1ef0f66e4d5f9c">network_flow_calculate</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Imprime el flujo total en el archivo "flow.txt".  <a href="#a994931ffee40f5225b1ef0f66e4d5f9c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a3d8b99aa8bfb8f339b16e910bd7272fc">network_increase_flow</a> (<a class="el" href="structplist__s.html">plist_t</a> path, <a class="el" href="structs__network.html">network</a> n, unsigned int min_flow)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Incrementa el flujo de las aristas que estan en path en una cantidad min_flow para el network n.  <a href="#a3d8b99aa8bfb8f339b16e910bd7272fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a7725b0bfc7daf898e7910cfc9574dcc6">network_max_flow_calculate</a> (<a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calcula el flujo máximo, es decir la sumatoria de los flujos que salen de s.  <a href="#a7725b0bfc7daf898e7910cfc9574dcc6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#ab26a650de135b00b1bc8045f936fb6b3">network_helper_increase_flow</a> (<a class="el" href="structplist__s.html">plist_t</a> path, <a class="el" href="structs__network.html">network</a> n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Incrementa el flujo de las aristas que estan en path.  <a href="#ab26a650de135b00b1bc8045f936fb6b3"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descripción detallada</h2>
<p>&lt; Estructura y funciones del network &gt; </p>
<hr/><h2>Documentación de los tipos definidos</h2>
<a class="anchor" id="addbbab3d5accd36296eb31c4cf6c60e8"></a><!-- doxytag: member="network.h::network" ref="addbbab3d5accd36296eb31c4cf6c60e8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structs__network.html">s_network</a>* <a class="el" href="structs__network.html">network</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="ab389d49dc3e29b1e93effbad4f90f07a"></a><!-- doxytag: member="network.h::network_add" ref="ab389d49dc3e29b1e93effbad4f90f07a" args="(network n, unsigned int from, unsigned int to, unsigned int cap, unsigned int flow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>cap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>flow</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creador del network. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network al que le vamos a agregar los nodos y aristas. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>from</em>&nbsp;</td><td>El nombre del nodo origen. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>El nomre del nodo destino. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cap</em>&nbsp;</td><td>La capacidad de a arista. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flow</em>&nbsp;</td><td>El flujo de la arista. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9180750065e74c1d1c16da870f9374c5"></a><!-- doxytag: member="network.h::network_create" ref="a9180750065e74c1d1c16da870f9374c5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__network.html">network</a> network_create </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crea un network. </p>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Un nuevo network. </dd></dl>

</div>
</div>
<a class="anchor" id="a0379626205439b310368565433910844"></a><!-- doxytag: member="network.h::network_cut_calculate" ref="a0379626205439b310368565433910844" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_cut_calculate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Imprime el corte en un network auxiliar en el archivo "cut.txt". </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nh</em>&nbsp;</td><td>El network auxiliar del cual queremos calcular el corte </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac90020360bcf4cbdb4edf87747b59514"></a><!-- doxytag: member="network.h::network_destroy" ref="ac90020360bcf4cbdb4edf87747b59514" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor del network. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network que queremos destruir. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a86a84798a70a49d52861744abc409c02"></a><!-- doxytag: member="network.h::network_find" ref="a86a84798a70a49d52861744abc409c02" args="(network n, unsigned int name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__node.html">node</a> network_find </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Busca y devuelve un nodo del network. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network en el que vamos a buscar el nodo </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>El nombre del nodo a buscar. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>El nodo o NULL si no esta. </dd></dl>

</div>
</div>
<a class="anchor" id="a994931ffee40f5225b1ef0f66e4d5f9c"></a><!-- doxytag: member="network.h::network_flow_calculate" ref="a994931ffee40f5225b1ef0f66e4d5f9c" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_flow_calculate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Imprime el flujo total en el archivo "flow.txt". </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network del cual queremos imprimir el flujo. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaee1073c65cf1ce8fae947890cbe1ea6"></a><!-- doxytag: member="network.h::network_helper_add" ref="aaee1073c65cf1ce8fae947890cbe1ea6" args="(network n, unsigned int from, unsigned int to, unsigned int cap, unsigned int flow, bool backward)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_helper_add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>cap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>flow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>backward</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creador del network. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network auxiliar al que le vamos a agregar los nodos y aristas. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>from</em>&nbsp;</td><td>El nombre del nodo origen. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>El nomre del nodo destino. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cap</em>&nbsp;</td><td>La capacidad de a arista. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flow</em>&nbsp;</td><td>El flujo de la arista. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>backward</em>&nbsp;</td><td>Para indicar si agregamos la arista en backward. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae84887188c4016ac7207d02b05e968d7"></a><!-- doxytag: member="network.h::network_helper_create" ref="ae84887188c4016ac7207d02b05e968d7" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__network.html">network</a> network_helper_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crea un network auxiliar. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network que queremos destruir. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>El network auxiliar. </dd></dl>

</div>
</div>
<a class="anchor" id="ab26a650de135b00b1bc8045f936fb6b3"></a><!-- doxytag: member="network.h::network_helper_increase_flow" ref="ab26a650de135b00b1bc8045f936fb6b3" args="(plist_t path, network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int network_helper_increase_flow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structplist__s.html">plist_t</a>&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Incrementa el flujo de las aristas que estan en path. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd>
<dd>
<code> (path != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>El camino de aristas de s a t en las que hay que aumentar el flujo </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network en el que queremos aumentar el flujo </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>La cantidad de flujo que el camino aumento. </dd></dl>

</div>
</div>
<a class="anchor" id="a3d8b99aa8bfb8f339b16e910bd7272fc"></a><!-- doxytag: member="network.h::network_increase_flow" ref="a3d8b99aa8bfb8f339b16e910bd7272fc" args="(plist_t path, network n, unsigned int min_flow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_increase_flow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structplist__s.html">plist_t</a>&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>min_flow</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Incrementa el flujo de las aristas que estan en path en una cantidad min_flow para el network n. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd>
<dd>
<code> (path != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>El camino de aristas de s a t en las que hay que aumentar el flujo </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>min_flow</em>&nbsp;</td><td>La cantidad de flujo que puede enviar el camino </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network en el que queremos aumentar el flujo </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7725b0bfc7daf898e7910cfc9574dcc6"></a><!-- doxytag: member="network.h::network_max_flow_calculate" ref="a7725b0bfc7daf898e7910cfc9574dcc6" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int network_max_flow_calculate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calcula el flujo máximo, es decir la sumatoria de los flujos que salen de s. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (n != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network en el que queremos calcular el flujo máximo </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>El flujo máximo del network. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b8fe0c3122b341bcd6c60f370196cfa"></a><!-- doxytag: member="network.h::network_path_exists" ref="a2b8fe0c3122b341bcd6c60f370196cfa" args="(network n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool network_path_exists </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Indica si hay un camino en el network hasta t. </p>
<dl class="pre"><dt><b>Precondición:</b></dt><dd><code> (nh != NULL) </code> </dd></dl>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>El network en el que queremos saber si hay camino. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Verdadero si hay un camino hacia t. </dd></dl>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Tipos definidos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Definiciones</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generado el Mon Jun 6 20:15:28 2011 para dinic por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
